//
//  NSObject+ViewController.m
//  框架Frame
//
//  Created by 中企互联 on 2017/11/2.
//  Copyright © 2017年 丶离人梦. All rights reserved.
//

#import "NSObject+ViewController.h"

@implementation NSObject (ViewController)

- (UIViewController *)ViewController {
    UIViewController *viewController = [[[UIApplication sharedApplication] keyWindow] rootViewController];
    
    return viewController;
}

@end
